<script setup>
import { useRouter, useRoute } from 'vue-router'
const router = useRouter()
const route = useRoute()
const goToNewGame = () => {
  router.push('/love')
}
</script>

<template>
    <el-container>
      <el-header class="header" v-if="route.path === '/game'">
        <el-button class="btn" type="primary" plain @click="goToNewGame">💞💓Go To LovePage💓💞</el-button>
      </el-header>
      <el-main class="main">
        <router-view></router-view>
      </el-main>
    </el-container>
</template>

<style scoped>
.header {
  background-color: #93c0f8;
  border-radius: 10px;
  color: #303133;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 550px;

}
.btn {
  font-size: 22px;
  height: 50px;
  padding: 10px 20px;
  border-radius: 10px;
}
.main {
  overflow: visible;
}

</style>